import request from '@/utils/request'

// 查询列表
export function listForeseeOrder(query) {
  return request({
    url: '/orderInfo/selectPage',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getForeseeOrder(query) {
  return request({
    url: '/orderInfo/getDetail',
    method: 'get',
    params: query
  })
}

// 取消订单
export function closeForeseeOrder(data) {
  return request({
    url: '/orderInfoExpand/cancelOrder',
    method: 'post',
    data: data
  })
}

// 查询进展
export function getOrderProcess(query) {
  return request({
    url: '/orderInfo/getOrderProcess',
    method: 'get',
    params: query
  })
}

// 查询账单
export function selectBillPage(query) {
  return request({
    url: '/orderInfoServiceExpand/selectBillPage',
    method: 'get',
    params: query
  })
}

// 添加催收
export function saveOrderInfoCollectionRecord(data) {
  return request({
    url: '/orderInfoServiceExpand/saveOrderInfoCollectionRecord',
    method: 'post',
    data: data
  })
}

// 查询催收
export function selectOrderInfoCollectionRecordPage(query) {
  return request({
    url: '/orderInfoServiceExpand/selectOrderInfoCollectionRecordPage',
    method: 'get',
    params: query
  })
}

// 换绑业务员
export function bindConcatSysUser(data) {
  return request({
    url: '/userInfo/bindConcatSysUser',
    method: 'post',
    data: data
  })
}

// 换绑记录
export function selectBindSysUserLogList(query) {
  return request({
    url: '/userInfo/selectBindSysUserLogList',
    method: 'get',
    params: query
  })
}

// 换绑分页记录
export function selectBindSysUserLogPage(query) {
  return request({
    url: '/userInfo/selectBindSysUserLogPage',
    method: 'get',
    params: query
  })
}

// 认证详情
export function getThridAuthDetail(query) {
  return request({
    url: '/orderInfo/getThridAuthDetail',
    method: 'get',
    params: query
  })
}
